using System;
using FytSoa.Common.Extensions;
using FytSoa.Common.Utils;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;
using FytSoa.Domain.Sys;
using SqlSugar;
using System.Collections.Generic;

namespace FytSoa.Application.Sys
{
    /// <summary>
    /// 授权表
    /// </summary>
    public partial class SysAuthorityDto
    {
        
        /// <summary>
        /// 角色编号
        /// </summary>
        [Required]
        [JsonConverter(typeof(ConverterExtension), ConverterExtensionShip.UInt64)]
        public long RoleId { get; set; }

        /// <summary>
        /// 管理员编号
        /// </summary>
        [JsonConverter(typeof(ConverterExtension), ConverterExtensionShip.UInt64)]
        public long AdminId { get; set; }

        /// <summary>
        /// 菜单编号
        /// </summary>
        [JsonConverter(typeof(ConverterExtension), ConverterExtensionShip.UInt64)]
        public long MenuId { get; set; }

        /// <summary>
        /// 按钮功能组
        /// </summary>
        [SugarColumn(IsJson = true)]
        public List<SysMenuBtnFun> BtnFun { get; set; }

        /// <summary>
        /// 授权类型1=角色-菜单 2=用户-角色 3=角色-菜单-按钮功能
        /// </summary>
        [Required]
        public int Types { get; set; } = 1;


    }
}